<template>
  <el-dialog
    :visible.sync="options.visible"
    :appendToBody="options.appendToBody === false ? false : true"
    :closeOnClickModal="options.closeOnClickModal === true ? true : false"
    :width="options.width || '600px'" 
    v-bind="options"
    v-on="options">
    <slot></slot>
    <div slot="footer">
      <slot name="footer"></slot>
    </div>
  </el-dialog>
</template>

<script>
export default {
  name: "DialogList",
  props: ['options'],
  data() {
    return {
    };
  },
  methods: {
  },
};
</script>

<style scoped lang="scss">
</style>

